package com.zhaozhaonews.wemedia.controller;


import com.zhaozhaonews.model.common.dto.ResponseResult;
import com.zhaozhaonews.wemedia.service.WmChannelService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 频道信息表 前端控制器
 * </p>
 *
 * @author WanJL
 * @since 2025-02-17
 */
@RestController
@RequestMapping("/api/v1/channel")
public class WmChannelController {

    @Resource
    private WmChannelService wmChannelService;

    @GetMapping("/channels")
    public ResponseResult findAll(){
        return ResponseResult.okResult(wmChannelService.list());
    }
}
